<div style="background:#ddd; border:1px solid #ff0000; padding:5px; margin:10px;">
	Error: [<?php echo $exception->getCode(); ?>] <?php echo $exception->getMessage(); ?><br />
	File: <?php echo $exception->getFile(); ?> at line <?php echo $exception->getLine(); ?><br />
	<div style="padding:5px; border:1px solid #ff0000;">
	<?php foreach ($exception->getTrace() as $line) {
		$file = Arr::get($line, 'file');
		if (!empty($file)) { ?>
			<div><?php echo $file; ?> at line <?php echo Arr::get($line, 'line'); ?></div>
		<?php } else { ?>
			<div>Unknown file</div>
		<?php } ?>
		<div style="padding:0px 0px 10px 10px;">
			<div><?php echo Arr::get($line, 'class'), Arr::get($line, 'type'), Arr::get($line, 'function'); ?></div>
			<?php
			$cnt = 1;
			if (count($line['args']) > 0) {
				foreach ($line['args'] as $arg) {
					if (is_array($arg)) {
						echo '<div>Argument ', $cnt, ': <pre>', print_r($arg, true), '</pre></div>';
					} else {
						echo '<div>Argument ', $cnt, ': ', $arg, '</div>';
					}
					$cnt++;
				}
			} ?>
		</div>
	<?php } ?>
	</div>
</div>
